<?php 
class ScenicModel extends Model{

	//自动验证设置
	protected $_validate = array(
        array("name", "require", "名称不能为空"),
		array("address", "require", "地址不能为空"),
		array("content", "require", "内容不能为空"),
		array("local_stay", "require", "当地住宿不能为空"),
		array("local_diet", "require", "当地饮食不能为空"),
		array("travel_time", "require", "最佳旅游不能为空"),
		array("thumb", "require", "缩略图不能为空"),
		array("picture_urls", "require", "图片不能为空"),
    );
    //自动填充设置
    protected $_auto = array(
        array('create_time','time',1,'function'), //注册时间        
    	array('update_time','time',1,'function'), //注册时间
    );
}
?>、